<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html 
     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>File: README</title>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  <meta http-equiv="Content-Script-Type" content="text/javascript" />
  <link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
  <script type="text/javascript">
  // <![CDATA[

  function popupCode( url ) {
    window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
  }

  function toggleCode( id ) {
    if ( document.getElementById )
      elem = document.getElementById( id );
    else if ( document.all )
      elem = eval( "document.all." + id );
    else
      return false;

    elemStyle = elem.style;
    
    if ( elemStyle.display != "block" ) {
      elemStyle.display = "block"
    } else {
      elemStyle.display = "none"
    }

    return true;
  }
  
  // Make codeblocks hidden by default
  document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
  
  // ]]>
  </script>

</head>
<body>



  <div id="fileHeader">
    <h1>README</h1>
    <table class="header-table">
    <tr class="top-aligned-row">
      <td><strong>Path:</strong></td>
      <td>README
      </td>
    </tr>
    <tr class="top-aligned-row">
      <td><strong>Last Update:</strong></td>
      <td>Tue Apr 03 11:18:18 -0700 2007</td>
    </tr>
    </table>
  </div>
  <!-- banner header -->

  <div id="bodyContent">



  <div id="contextContent">

    <div id="description">
      <h1><a href="../classes/DynamicScaffoldResource.html">DynamicScaffoldResource</a></h1>
<h2>NO LONGER MAINTAINED: Superceded by <a href="http://code.google.com/p/restcontroller">code.google.com/p/restcontroller</a>/</h2>
<h2>Adds basic REST scaffolding to calling controller.</h2>
<h3>By Tim Connor <a href="http://www.timocracy.com">www.timocracy.com</a></h3>
<h3><a href="../../MIT-LICENSE">../MIT-LICENSE</a></h3>
<h3><a href="http://code.google.com/p/dynamic-scaffold-resource/">homepage</a></h3>
<h6>=============</h6>
<h4>Requirements</h4>
<p>
Obviously, this was developed against a version of Rails with the REST
functionality included, Edge in fact.
</p>
<h4>Install notes</h4>
<p>
It should just run out of the box as of 0.4. If you wish you can apply the
<a href="../../optional.patch">../optional.patch</a> yourself, and then
comment out the appropriate line in <a href="../../init.rb">../init.rb</a>
that sends the method redefinition to ActiveView.Base. If the <a
href="http://dev.rubyonrails.org/ticket/6413">dev.rubyonrails.org/ticket/6413</a>
and <a
href="http://dev.rubyonrails.org/ticket/6412">dev.rubyonrails.org/ticket/6412</a>
get applied to Rails, then again, just comment out the line in init.
</p>
<h4>Usage</h4>
<p>
Don&#8216;t forget to add your route &quot;<tt>map.resources
:model_name</tt>&quot;. Then just call &quot;<tt>scaffold_resource
:model_name</tt>&quot; in your ModelNamesController and it will have the
basic REST actions added, as well as their views.
</p>
<h4>DynamicResourceTestHelper</h4>
<p>
I separated out the tests that I used to test the plugin that correspond to
the generated tests for the REST actions and put them in a pseudo-helper,
so you can have a tested controller from step 1.
</p>
<p>
If you want to use it, &quot;<tt>include <a
href="../classes/DynamicScaffoldResourceTestHelper.html">DynamicScaffoldResourceTestHelper</a></tt>&quot;
in your functional controller, and set @scaffold_singular_name in your
setup. There are a couple other variables you can set, as well, to get it
to pass authentication and validation requirements, for instance. See the
docs for details.
</p>

    </div>


   </div>


  </div>


    <!-- if includes -->

    <div id="section">





      


    <!-- if method_list -->


  </div>


<div id="validator-badges">
  <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
</div>

</body>
</html>